export const exampleColumns = [
  { prop: 'index', type: 'index', label: '序号', width: 60, align: 'center' },
  { prop: 'ruleContent', label: '操作规程', minWidth: 150, align: 'center' },
  { prop: 'commendPenalize', label: '奖惩方式', minWidth: 60, align: 'center',
    formatter: function (row: any, column: any, cellValue: any) {
     if(cellValue==0) return '加分'
      if(cellValue==1) return '扣分'
      else return '-'
    }},
  { prop: 'score', label: '分值', minWidth: 60, align: 'center' ,
  formatter: function (row: any, column: any, cellValue: any) {
    console.log(cellValue)
      if(cellValue==null) return '-'
    else return cellValue
    }
},
  { prop: 'ruleOptions', label: '下拉选项', minWidth: 60, align: 'center' ,
    formatter: function (row: any, column: any, cellValue: any) {
    console.log(cellValue)
      if(cellValue==0) return "符合/不符合"
      if(cellValue==1)return "正常/异常"
      if(cellValue==2)return "对/错"
      if(cellValue==3)return "适用/不适用"
      else return '-'
    }
    },
  { prop: 'ruleValue', label: '默认值', minWidth: 60, align: 'center',
    formatter: function (row: any, column: any, cellValue: any) {
      // 0符合,1不符合,2正常,3异常,4对,5错,6适用,7不适用
      if(cellValue==0) return "符合"
      if(cellValue==1)return "不符合"
      if(cellValue==2)return "正常"
      if(cellValue==3)return "异常"
      if(cellValue==4)return "对"
      if(cellValue==5)return "错"
      if(cellValue==6)return "适用"
      if(cellValue==7)return "不适用"
      else return '-'
    }},
  {
    prop: 'updateTime',
    label: '更新时间',
    minWidth: 150,
    // sortable: 'custom',
    align: 'center',
    formatter: function (row: any, column: any, cellValue: any) {
      if (cellValue) {
        return cellValue
      } else {
        return '-'
      }
    }
  },

]
export const exampleColumns1 = [
  { prop: 'index', type: 'index', label: '序号', width: 60, align: 'center' },
  { prop: 'content', label: '操作规程', minWidth: 150, align: 'center' },
]
export const exampleColumns2 = [
   { type: 'selection',align:'center'},
  { prop: 'enclosureName', label: '文件名称', align:'center'},
  { prop: 'enclosureCode', label: '文件编号',sortable: 'custom', align: 'center' },
  { prop: 'enclosureSize', label: '文件大小', align: 'center' },
  { prop: 'enclosureType', label: '文件类型',sortable: 'custom', align: 'center' },
  { prop: 'enclosureVersion', label: '文件版本', align: 'center' }
];
